
export default ({ request, moduleName }) => ({

  // 团队管理
  /**
   * @description 新增 /urcap/departmentManage/addDept
   */
  api_urcap_departmentManage_addDept({body=undefined,param=undefined,header=undefined,path=undefined,config=undefined}={}) {
    // 接口请求
    return request({
      url: `${moduleName}/departmentManage/addDept`,
      method: 'post',
      headers:{'Content-Type':'application/json',
        ...header
      },
      data:body,
      params:param,
      ...config
    })
  },

  /**
   * @description 删除 /urcap/departmentManage/deleteDept
   */
  api_urcap_departmentManage_deleteDept({body=undefined,param=undefined,header=undefined,path=undefined,config=undefined}={}) {
    // 接口请求
    return request({
      url: `${moduleName}/departmentManage/deleteDept`,
      method: 'get',
      headers:{'Content-Type':'application/json',
        ...header
      },
      data:body,
      params:param,
      ...config
    })
  },

  /**
   * @description 删除部门成员 /urcap/departmentManage/deleteDeptUser
   */
  api_urcap_departmentManage_deleteDeptUser({body=undefined,param=undefined,header=undefined,path=undefined,config=undefined}={}) {
    // 接口请求
    return request({
      url: `${moduleName}/departmentManage/deleteDeptUser`,
      method: 'get',
      headers:{'Content-Type':'application/json',
        ...header
      },
      data:body,
      params:param,
      ...config
    })
  },

  /**
   * @description 删除部门成员 /urcap/departmentManage/deleteDeptUserList
   */
  api_urcap_departmentManage_deleteDeptUserList({body=undefined,param=undefined,header=undefined,path=undefined,config=undefined}={}) {
    // 接口请求
    return request({
      url: `${moduleName}/departmentManage/deleteDeptUserList`,
      method: 'get',
      headers:{'Content-Type':'application/json',
        ...header
      },
      data:body,
      params:param,
      ...config
    })
  },

  /**
   * @description 部门用户启用、禁用 /urcap/departmentManage/enableDeptUser
   */
  api_urcap_departmentManage_enableDeptUser({body=undefined,param=undefined,header=undefined,path=undefined,config=undefined}={}) {
    // 接口请求
    return request({
      url: `${moduleName}/departmentManage/enableDeptUser`,
      method: 'get',
      headers:{'Content-Type':'application/json',
        ...header
      },
      data:body,
      params:param,
      ...config
    })
  },

  /**
   * @description 查询部门详情 /urcap/departmentManage/getDept
   */
  api_urcap_departmentManage_getDept({body=undefined,param=undefined,header=undefined,path=undefined,config=undefined}={}) {
    // 接口请求
    return request({
      url: `${moduleName}/departmentManage/getDept`,
      method: 'get',
      headers:{'Content-Type':'application/json',
        ...header
      },
      data:body,
      params:param,
      ...config
    })
  },

  /**
   * @description 查询团队成员 /urcap/departmentManage/listDeptUser
   */
  api_urcap_departmentManage_listDeptUser({body=undefined,param=undefined,header=undefined,path=undefined,config=undefined}={}) {
    // 接口请求
    return request({
      url: `${moduleName}/departmentManage/listDeptUser`,
      method: 'get',
      headers:{'Content-Type':'application/json',
        ...header
      },
      data:body,
      params:param,
      ...config
    })
  },

  /**
   * @description 查询团队成员 /urcap/departmentManage/deptUserPage
   */
  api_urcap_departmentManage_deptUserPage({body=undefined,param=undefined,header=undefined,path=undefined,config=undefined}={}) {
    // 接口请求
    return request({
      url: `${moduleName}/departmentManage/deptUserPage`,
      method: 'get',
      headers:{'Content-Type':'application/json',
        ...header
      },
      data:body,
      params:param,
      ...config
    })
  },

  /**
   * @description 查询团队树 /urcap/departmentManage/orgTree
   */
  api_urcap_departmentManage_orgTree({body=undefined,param=undefined,header=undefined,path=undefined,config=undefined}={}) {
    // 接口请求
    return request({
      url: `${moduleName}/departmentManage/orgTree`,
      method: 'get',
      headers:{'Content-Type':'application/json',
        ...header
      },
      data:body,
      params:param,
      ...config
    })
  },

  /**
   * @description 添加部门成员 /urcap/departmentManage/saveDeptUser
   */
  api_urcap_departmentManage_saveDeptUser({body=undefined,param=undefined,header=undefined,path=undefined,config=undefined}={}) {
    // 接口请求
    return request({
      url: `${moduleName}/departmentManage/saveDeptUser`,
      method: 'post',
      headers:{'Content-Type':'application/json',
        ...header
      },
      data:body,
      params:param,
      ...config
    })
  },

  /**
   * @description 设为主管（支持多人主管） /urcap/departmentManage/setMonster
   */
  api_urcap_departmentManage_setMonster({body=undefined,param=undefined,header=undefined,path=undefined,config=undefined}={}) {
    // 接口请求
    return request({
      url: `${moduleName}/departmentManage/setMonster`,
      method: 'post',
      headers:{'Content-Type':'application/json',
        ...header
      },
      data:body,
      params:param,
      ...config
    })
  },

  //角色管理
  /**
   * @description 添加角色用户 /urcap/roleManage/addUserRole
   */
  api_urcap_roleManage_addUserRole({body=undefined,param=undefined,header=undefined,path=undefined,config=undefined}={}) {
    // 接口请求
    return request({
      url: `${moduleName}/roleManage/addUserRole`,
      method: 'post',
      headers:{'Content-Type':'application/json',
        ...header
      },
      data:body,
      params:param,
      ...config
    })
  },

  /**
   * @description 删除角色(解除对应关系：部门角色、用户角色） /urcap/roleManage/deleteRole
   */
  api_urcap_roleManage_deleteRole({body=undefined,param=undefined,header=undefined,path=undefined,config=undefined}={}) {
    // 接口请求
    return request({
      url: `${moduleName}/roleManage/deleteRole`,
      method: 'get',
      headers:{'Content-Type':'application/json',
        ...header
      },
      data:body,
      params:param,
      ...config
    })
  },

  /**
   * @description 删除角色关联的用户 /urcap/roleManage/deleteRoleUser
   */
  api_urcap_roleManage_deleteRoleUser({body=undefined,param=undefined,header=undefined,path=undefined,config=undefined}={}) {
    // 接口请求
    return request({
      url: `${moduleName}/roleManage/deleteRoleUser`,
      method: 'post',
      headers:{'Content-Type':'application/json',
        ...header
      },
      data:body,
      params:param,
      ...config
    })
  },

  /**
   * @description 查询团队角色列表 /urcap/roleManage/deptRoleList
   */
  api_urcap_roleManage_deptRoleList({body=undefined,param=undefined,header=undefined,path=undefined,config=undefined}={}) {
    // 接口请求
    return request({
      url: `${moduleName}/roleManage/deptRoleList`,
      method: 'get',
      headers:{'Content-Type':'application/json',
        ...header
      },
      data:body,
      params:param,
      ...config
    })
  },

  /**
   * @description 查询角色树 /urcap/roleManage/roleTree
   */
  api_urcap_roleManage_roleTree({body=undefined,param=undefined,header=undefined,path=undefined,config=undefined}={}) {
    // 接口请求
    return request({
      url: `${moduleName}/roleManage/roleTree`,
      method: 'get',
      headers:{'Content-Type':'application/json',
        ...header
      },
      data:body,
      params:param,
      ...config
    })
  },

  /**
   * @description 查询角色用户列表 /urcap/roleManage/roleUserList
   */
  api_urcap_roleManage_roleUserList({body=undefined,param=undefined,header=undefined,path=undefined,config=undefined}={}) {
    // 接口请求
    return request({
      url: `${moduleName}/roleManage/roleUserList`,
      method: 'get',
      headers:{'Content-Type':'application/json',
        ...header
      },
      data:body,
      params:param,
      ...config
    })
  },

  /**
   * @description 查询角色用户列表 /urcap/roleManage/roleUserPage
   */
  api_urcap_roleManage_roleUserPage({body=undefined,param=undefined,header=undefined,path=undefined,config=undefined}={}) {
    // 接口请求
    return request({
      url: `${moduleName}/roleManage/roleUserPage`,
      method: 'get',
      headers:{'Content-Type':'application/json',
        ...header
      },
      data:body,
      params:param,
      ...config
    })
  },

  /**
   * @description 新增角色 /urcap/roleManage/addRole
   */
  api_urcap_roleManage_addRole({body=undefined,param=undefined,header=undefined,path=undefined,config=undefined}={}) {
    // 接口请求
    return request({
      url: `${moduleName}/roleManage/addRole`,
      method: 'post',
      headers:{'Content-Type':'application/json',
        ...header
      },
      data:body,
      params:param,
      ...config
    })
  },

  /**
   * @description 新增角色组 /urcap/roleManage/addGroup
   */
  api_urcap_roleManage_addRoleGroup({body=undefined,param=undefined,header=undefined,path=undefined,config=undefined}={}) {
    // 接口请求
    return request({
      url: `${moduleName}/roleManage/addGroup`,
      method: 'post',
      headers:{'Content-Type':'application/json',
        ...header
      },
      data:body,
      params:param,
      ...config
    })
  },

  /**
   * @description  /urcap/departmentManage/resetDeptUserPwd
   */
  api_urcap_departmentManage_resetDeptUserPwd({body=undefined,param=undefined,header=undefined,path=undefined,config=undefined}={}) {
    // 接口请求
    return request({
      url: `${moduleName}/departmentManage/resetDeptUserPwd`,
      method: 'post',
      headers:{'Content-Type':'application/json',
        ...header
      },
      data:body,
      params:param,
      ...config
    })
  },

})
